<!--{assign var="menu_id" value="photo"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<script src="<!--{$userskin}-->js/photo.js"></script>
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav">我的相册</div>
	  <!--{assign var="public_photos" value=<!--{countdata type="user" mod="myphoto" where="v.userid='<!--{$login.info.userid}-->' AND v.private='0'"}-->}-->
	  <!--{assign var="private_photos" value=<!--{countdata type="user" mod="myphoto" where="v.userid='<!--{$login.info.userid}-->' AND v.private='1'"}-->}-->
	  <!--{assign var="total_photos" value=($public_photos+$private_photos)}-->
	  <div class="oe_utitle">
		<ul>
		  <li><a href="<!--{$oefile}-->&c=photo"<!--{if $s_type == '0'}--> class="current"<!--{/if}-->>公开照<em>(<!--{$public_photos}-->)</em></a></li>
		  <li><a href="<!--{$oefile}-->&c=photo&s_type=1" <!--{if $s_type == '1'}--> class="current"<!--{/if}-->>私密照<em>(<!--{$private_photos}-->)</em></a></li>

		  <li class="ma" f="but_show_scan">
		    <em></em>扫码上传
		    <span style="display:none;"><img src="<!--{$urlpath}-->index.php?c=scan&a=addphoto&type=<!--{$s_type}-->&r=<!--{$time}-->" /></span>
		  </li>

		</ul>
		<div class="clear"></div>
		<!--{if $s_type == "1"}-->
		<span class="add" f="but_open_addphoto" data-type="1"><i></i>上传私密照片</span>
		<!--{else}-->
		<span class="add" f="but_open_addphoto" data-type="0"><i></i>上传公开照片</span>
		<!--{/if}-->
	  </div>

      <div class="photo_list">
        <div class="hd">
          <p class="text">
		    <input type="hidden" name="remain_photos" id="remain_photos" value="<!--{$remain_photos}-->" />
		    您已上传了 <em><!--{$total_photos}--></em> 张照片
			<!--{if $limit_photo == '1'}-->
			<!--{if $remain_photos > 0}-->
			，您还可以上传 <em><!--{$remain_photos}--></em> 张照片
			<!--{else}-->
			，您还可以上传 <em>0</em> 张照片
			<!--{/if}-->
			<!--{/if}-->
			<br />
          </p>
          <a href="<!--{$oefile}-->&c=vip">获取上传更多照片权限</a>
        </div>


        <div class="bd">
		  <dl class="upload" f="but_open_addphoto" data-type="<!--{$s_type}-->">
		    <dt><span></span><p>上传照片</p></dt>
            <dd></dd>
          </dl>
          <dl class="ma" style="display:none;">

		    <dt><img src="<!--{$urlpath}-->index.php?c=scan&a=addphoto&type=<!--{$s_type}-->&r=<!--{$time}-->" /></dt>

			<dd>扫码上传</dd>

		  </dl>
          <dl class="mi_photo" style="display:none;">
		    <dt>
			  <p class="p_1"><span></span></p>
			  <p class="p_2">私密照 <!--{$private_photos}--></p>
            </dt>
			<dd><a href="<!--{$oefile}-->&c=photo&s_type=1"></a></dd>

		  </dl>
          <!--{foreach $photo as $volist}-->
          <dl f="but_show_photo_hand">
            <dt><img class="photoimg" src="<!--{$volist.thumbimg}-->"/><img class="line" src="<!--{$userskin}-->images/line.png"/></dt>
			<dd style="display:none;">
              <span f="but_photo_del" data-id="<!--{$volist.photoid}-->"><i></i>删除</span>
			  <!--{if $volist.private == '1'}-->
              <label f="but_photo_set" data-mod="public" data-id="<!--{$volist.photoid}-->"><i></i>设为公开</label>
			  <!--{else}-->
			  <label f="but_photo_set" data-mod="private" data-id="<!--{$volist.photoid}-->"><i></i>设为私密</label>
			  <!--{/if}-->
            </dd>
          </dl>
          <!--{/foreach}-->
          <div class="clear"></div>
        </div>
      </div>
      <!--{if !empty($showpage)}-->
      <div class="oe_page"> <!--{$showpage}--> </div>
      <!--{/if}--> 
    </div>
  </div>
  <div class="clear"></div>
</div>


<div class="oe_shade" id="addphoto_abox" style="display:none;">
  <div class="oe_shade_wrap">
  <span class="close"></span>
    <div class="oe_shade_box" id="addphoto_adata">


    
    
    </div>
  </div>
</div> 


<!--{include file="<!--{$uctplpath}-->block_footer.tpl"}-->
</body>
</html>